import request from '@/api/axios'
import {AxiosPromise} from 'axios'

export interface ExportPhyDetailed {
  packageId: string // 体检套餐id
}

/**
 * @description: 导出数据
 * @param {Array} data
 * @return {*}
 */
export const exportPhyDetailed = (params: ExportPhyDetailed): AxiosPromise<ArrayBuffer> => {
  return request({
    url: '/api/detailedStatistics/export',
    method: 'get',
    params,
    responseType: 'arraybuffer'
  })
}
